package org.jeecg.modules.bv.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.bv.entity.BvVouchers;
import org.jeecg.modules.bv.vo.BvIndexDataVO;

import java.util.List;
import java.util.Map;

/**
 * @Description: 票据使用
 * @Author: jeecg-boot
 * @Date:   2022-03-09
 * @Version: V1.0
 */
public interface BvVouchersMapper extends BaseMapper<BvVouchers> {

    /**
     * 获取缴费账户下-所有已开的票据列表
     * @param accCode
     * @param oldVersion
     * @param oldVoucher
     * @return
     */
    public List<BvVouchers>openedBillList(@Param("accCode") String accCode
            , @Param("oldVersion") String oldVersion
            , @Param("oldVoucher") String oldVoucher
            , @Param("createTimeBegin") String createTimeBegin
            , @Param("createTimeEnd")String createTimeEnd);


    /**
     * 查询积木报表配置信息
     * @param dbCode
     * @return
     */
    public List<Map<String,Object>>getJimuReport(@Param("dbCode") String dbCode,@Param("tenant")String tenant);

    /**
     * 查询积木报表配置信息
     * @param dbId
     * @return
     */
    public List<Map<String,Object>>getJimuReportField(@Param("dbId") String dbId);

    /**今日开票数据*/
    public List<BvIndexDataVO>queryBvIndexData();

}
